Skip to main content

DescribeAvailableResource

Description

call DescribeAvailableResource to query the resource list of an available area. You can query the resource list of an available zone when creating an instance (RunInstances) or modifying the instance type (ModifyInstanceSpec).

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeAvailableResource

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
DedicatedHostIdBODYstringNodh-bp165p6xk2tlw61e****proprietary host ID.
IoOptimizedBODYstringNooptimizedis it an I/O optimized instance. Value range: none: non-I/O optimized instance optimized:I/O optimized instance default value: optimized.
ZoneIdBODYstringNocn-hangzhou-azone ID. default value: none, which means that the available areas under the current region are randomly assigned, and the resources that meet the query criteria of all available areas under this region (RegionId) are returned.
DestinationResourceBODYstringYesInstanceTypethe type of resource to query. Value range: Zone: zone IoOptimized:I/O optimization InstanceType: instance type SystemDisk: system disk DataDisk: data disk Network: network type ddh: dedicated host Please refer to the interface description above for the value DestinationResource of the parameter.
MemoryBODYfloatNo8.0Description This parameter is not open for use.
ResourceTypeBODYstringNoinstanceresource type. Value range: instance:ECS instance disk: cloud disk ddh: dedicated host
versionBODYstringNo2016-01-01version of api
SystemDiskCategoryBODYstringNocloud_ssdsystem disk type. Value range: cloud: ordinary cloud disk cloud_efficiency: efficient cloud disk cloud_ssd:SSD cloud disk ephemeral_ssd: local SSD cloud_essd:ESSD cloud disk If the parameter DestinationResource values are SystemDisk, InstanceType or DataDisk, the parameter SystemDiskCategory is not required. default value: cloud_efficiency.
NetworkCategoryBODYstringNovpcnetwork type. Value range: vpc: vpc classic: Classic Network
CoresBODYintegerNo2Description This parameter is not open for use.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-hangzhoutarget region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
InstanceTypeBODYstringNoecs.g5.largeDescription This parameter is not open for use.
DataDiskCategoryBODYstringNocloud_ssddata disk type. Value range: cloud: ordinary cloud disk cloud_efficiency: efficient cloud disk cloud_ssd:SSD cloud disk ephemeral_ssd: local SSD cloud_essd:ESSD cloud disk

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: DescribeDeploymentSets

DescribeDeploymentSets

Description

call DescribeDeploymentSets to query the attribute list of one or more deployment sets.

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeDeploymentSets

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
PageSizeBODYintegerNo10the number of rows per page set during paging query. Maximum value: 50. default value: 10.
PageNumberBODYintegerNo1page number of deployment set list. starting value: 1. default value: 1.
DeploymentSetIdsBODYstringNo["ds-bp67acfmxazb4ph***", "ds-bp67acfmxazb4pi ***",… "ds-bp67acfmxazb4pj***"]deployment set ID list. The value can be a JSON array composed of multiple deployment set IDs, which can support up to 100 IDs, separated by commas (,).
regionIdBODYstringYesNo sample value for this parameter.region id
NetworkTypeBODYstringNonullthe network type of the instance in the deployment set. description to improve compatibility, please try to use other parameters.
StrategyBODYstringNoAvailabilitydeployment policy. Value range: LooseDispersion: as scattered as possible. LooseAggregation: try to aggregate. StrictAggregation: strict aggregation. StrictDispersion: strictly dispersed. default value: LooseDispersion. If the deployment granularity is Switch, four deployment policies can be supported. If the deployment granularity is Rack or Host, you can only choose to disperse as much as possible or strictly disperse.
DeploymentSetNameBODYstringNoFinanceDeploymen****deployment set name.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the deployment set. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
GranularityBODYstringNonulldeployment granularity. Value range: Host: host, which means that the minimum scheduling granularity is a physical server. Rack: The minimum scheduling granularity is one rack. Switch: The minimum scheduling granularity is a network switch. default value: Host.
DomainBODYstringNonulldeployment domain. Value range: Default Switch default value: Default.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}